<%--
  Created by IntelliJ IDEA.
  User: ZY
  Date: 2021/11/15
  Time: 23:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>教师登录</title>
    <link rel="stylesheet" type="text/css" href="Login/Login.css"/>
    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>
</head>
<body>
<header>
    <a href="#" class="logo">学生选课系统</a>
    <ul>
        <li>
            <a href="studentLogin.jsp">学生</a>
        </li>
        <li><a href="#" class="active">教师</a>
        </li>
        <li><a href="adminLogin.jsp">管理员</a>
        </li>
    </ul>
</header>
<section>
    <img src="Login/stars.png" id="stars">
    <img src="Login/moon.png" id="moon">
    <img src="Login/mountainsbehind.png" id="mountains_behind">
    <div style="text-align: center" class="box">
        <form action="login" method="post" id="form">
            <h1 class="title">教师登录</h1>
            <div class="item">
                <i class="fa fa-user-circle" aria-hidden="true"></i>
                <svg t="1638952025299" class="icon" viewBox="0 0 1024 1024" version="1.1"
                     xmlns="http://www.w3.org/2000/svg" p-id="3875" width="32" height="32">
                    <path d="M512 590.75c-142.5 0-258.75-116.25-258.75-258.75s116.25-262.5 258.75-262.5 258.75 116.25 258.75 258.75-116.25 262.5-258.75 262.5zM512 144.5c-101.25 0-183.75 82.5-183.75 183.75s82.5 183.75 183.75 183.75 183.75-82.5 183.75-183.75-82.5-183.75-183.75-183.75z"
                          p-id="3876" fill="#ffffff"></path>
                    <path d="M170.75 950.75c-18.75 0-37.5-15-37.5-37.5 0-7.5 0-11.25 0-15 0-210 172.5-382.5 382.5-382.5 22.5 0 37.5 15 37.5 37.5s-15 37.5-37.5 37.5c-168.75 0-307.5 138.75-307.5 307.5v11.25c0 22.5-18.75 41.25-37.5 41.25v0z"
                          p-id="3877" fill="#ffffff"></path>
                    <path d="M853.25 947v0c-22.5 0-37.5-15-37.5-37.5v-11.25c0-168.75-138.75-307.5-307.5-307.5-22.5 0-37.5-15-37.5-37.5s15-37.5 37.5-37.5c210 0 382.5 172.5 382.5 382.5 0 3.75 0 7.5 0 11.25 0 22.5-15 37.5-37.5 37.5z"
                          p-id="3878" fill="#ffffff"></path>
                </svg>
                <input type="text" name="teacherNo" placeholder="userId" id="teacherNo"></p>
            </div>
            <div class="item">
                <i class="fa fa-key" aria-hidden="true"></i>
                <svg t="1638952154186" class="icon" viewBox="0 0 1024 1024" version="1.1"
                     xmlns="http://www.w3.org/2000/svg" p-id="5585" width="200" height="200">
                    <path d="M907.1 432.1l-89-90.2-84.5 85.7h-28.1l-85.8-85.2-84.5 83.9c-30.9-99.2-121.4-171-228.2-171-132.3 0-239.6 110.3-239.6 246.3S174.7 747.9 307 747.9c107.3 0 198.1-72.5 228.6-172.4h346.8c39.5 0 71.5-32.4 71.5-72.4V500c0-31.2-19.5-57.7-46.8-67.9zM307 599.9c-52.9 0-95.8-44.1-95.8-98.5s42.9-98.5 95.8-98.5 95.8 44.1 95.8 98.5-42.9 98.5-95.8 98.5z"
                          p-id="5586" fill="#ffffff"></path>
                </svg>
                <input type="password" name="teacherpassword" placeholder="password" id="teacherPwd"></p>
            </div>
            <input type="button" value="登录/Login" id="btn1">
            <a href="teacherRegister.jsp" id="btn2">注册/Regist</a>
        </form>
    </div>
    <img src="Login/mountainsfront.png" id="mountains_front" class="111">
</section>
</body>
<script type="text/javascript">
    $("#btn1").click(function () {
        var no = $("#teacherNo").val();
        var pwd = $("#teacherPwd").val();
        if (no==null||no.trim()==""){
            alert("用户名不能为空！");
            return;
        }
        if (pwd==null||pwd.trim()==""){
            alert("密码不能为空！");
            return;
        }
$("#form").submit();
    });
</script>
</html>
